import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: '',
      component: () => import('@/components/Layout.vue'),
      children: [
        {
          path: '',
          name: 'home',
          component: () => import('@/views/HomePage.vue')
        },
        {
          path: '/bar',
          name: 'bar',
          component: () => import('@/views/main/BarMain.vue')
        },
        {
          path: '/line',
          name: 'line',
          component: () => import('@/views/main/LineMain.vue')

        },
        {
          path: '/pie',
          name: 'pie',
          component: () => import('@/views/main/PieMain.vue')
        },
        {
          path: 'radar',
          name: 'radar',
          component: () => import('@/views/main/RadarMain.vue')
        }
      ]
    }
  ],
})

export default router
